// node.js, "classic" way:
var MarkdownIt = require('markdown-it'),
  md = new MarkdownIt();
var result = md.render('# markdown-it rulezz!');
console.log(result)
/*
<h1>markdown-it rulezz!</h1>
*/

// node.js, the same, but with sugar:
var md = require('markdown-it')();
var result = md.render('# markdown-it rulezz!');
console.log(result)
/*
<h1>markdown-it rulezz!</h1>
*/


var md = require('markdown-it')();
var result = md.render('__markdown-it__ rulezz!');
console.log(result)
/*
<p><strong>markdown-it</strong> rulezz!</p>
*/
//Single line rendering, without paragraph wrap:
//不带p标签
var result = md.renderInline('__markdown-it__ rulezz!');
console.log(result)
/*
<strong>markdown-it</strong> rulezz!
*/
